package lmteam.applicationservice;

import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;

public class AssignmentServiceProcessorTest {

  // public members

  @Test
  public void testAssignments() throws java.rmi.RemoteException {

    lmteam.common.Document doc = new lmteam.common.Document();
    doc.setFilename("ASimpleFile.txt");
    doc.setAuthor("John");
    doc.setData("");

    AssignmentServiceProcessor asp = new AssignmentServiceProcessor();
    boolean success = asp.assignTask(doc);
    assertTrue(success);
    if (success) System.out.println("Success!!");

  } // testAssignments

  public static void main(String args[]) {

    try {
      AssignmentServiceProcessorTest aspt = new AssignmentServiceProcessorTest();
      aspt.testAssignments();
    } catch (java.rmi.RemoteException e) {
      System.out.println("Exception occured.");
    }
    System.out.println("Clean run.");

  } // main

} // AssignmentServiceProcessorTest
